import {
    USER_ISLOGIN,
    USER_USERNAME,
    GET_DATACONVERSION,
    SET_SKIN
} from '../mutation-types'

const state = {
    skin: '',
    isLogin: false,
    userName:'',
    userMail:'',
    accountBalance:'',
    dataConversion:'',
}

const mutations = {
    [USER_ISLOGIN](state, isLogin) {
        state.isLogin = isLogin
    },
    [USER_USERNAME](state, userName) {
        state.userName = userName
    },
    [GET_DATACONVERSION](state, dataConversion) {
        state.dataConversion = dataConversion
    },
    [SET_SKIN](state, skin) {
        state.skin = skin
    },
}

export default {
    state,
    mutations
}
